<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LQ
  Date: 2021/5/19
  Time: 19:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="/jQuery/jquery-3.4.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/tag.css">
</head>
<body>
<div>
    <jsp:include page="main.jsp"/>
</div>

<div style="margin-left: 30%;margin-top: 1%">
    <div>
        <form action="/insertCategory" method="post">
            <input name="categoryName">输入分类名称
            <button type="submit">保存分类</button>
        </form>
    </div>

    <div>
        <div class="category_div">
            <table border="1px">
                <tr><td>分类列表</td></tr>
                <c:forEach items="${requestScope.categoryList}" var="category">
                    <tr>
                        <td>${category.categoryName}</td>
                    </tr>
                </c:forEach>
            </table>
        </div>

        <div class="tag_div">
            <table border="1px">
                <tr><td>标签列表</td></tr>
                <c:forEach items="${requestScope.tagList}" var="tag">
                    <tr>
                        <td>${tag.tagName}</td>
                    </tr>
                </c:forEach>
            </table>
        </div>
    </div>

</div>
</body>
</html>
